package com.mysteel.authserver.feign;

import com.mysteel.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * ProjectName: mail
 * ClassName: ThirdPartFeignService
 * Description:
 * date: 2021/02/25/025 9:33
 *
 * @author xiaochao
 */
@FeignClient("third-party")
public interface ThirdPartFeignService {

    /**
     * 第三方服务发送验证码接口
     * @param phone
     * @param code
     * @return
     */
    @GetMapping("/sms/sendCode")
    public R sendCode(@RequestParam("phone") String phone, @RequestParam("code") String code);
}
